Function Reference

_GUICtrlIpAddressSetFont

Set the font for the control

#Include <GuiIPAddress.au3>
_GUICtrlIpAddressSetFont ( hwnd [, Name = "Arial" [, Size = 10 [, Weight = 400 [, Italic = False]]]] )

 

Parameters

hwnd handle to a GUI IP Address control
Name Optional: The Font Name of the font to use (Default: Arial)
Size Optional: The Font Size (Default: 10)
Weight Optional: The Font Weight (Default: 400 = normal)
Italic Optional: Use Italic Attribute (Default: False)

 

Return Value

 

Remarks

None

 

Related

_GUICtrlIpAddressCreate

 

Example


#include <GuiIPAddress.au3>

Opt("MustDeclareVars", 1)

_Main()

Func _Main()
    Local $msg, $hgui, $button, $hIPAddress, $hIPAddress2
   
    $hgui = GUICreate("IP Address Control Set Font Example", 300, 150)
   
    $hIPAddress = _GUICtrlIpAddressCreate ($hgui, 10, 10, 150, 30,  $WS_DLGFRAME, $WS_EX_CLIENTEDGE)
    $hIPAddress2 = _GUICtrlIpAddressCreate ($hgui, 10, 50, 150, 30,  $WS_DLGFRAME, $WS_EX_CLIENTEDGE)
   
    $button = GUICtrlCreateButton("Exit", 100, 120, 100, 25)

    GUISetState(@SW_SHOW)

    _GUICtrlIpAddressSet ($hIPAddress, "24.168.2.128")
    _GUICtrlIpAddressSetFont($hIPAddress, "Times New Roman", 14, 800, True)
    _GUICtrlIpAddressSet ($hIPAddress2, "24.168.2.128")
    _GUICtrlIpAddressSetFont($hIPAddress2, "Arial", 12, 300)
   

   
   
    While 1
        $msg = GUIGetMsg()
       
        Select
            Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
                Exit
        EndSelect
    WEnd
EndFunc   ;==>_Main